Skip to main content

Next Play ID

This script reads the public nextPlayID from the TopShot contract and returns that number to the caller.

Returns: UInt32 - the nextPlayID field in TopShot contract

import TopShot from 0xTOPSHOTADDRESS

pub fun main(): UInt32 {
return TopShot.nextPlayID
}